package com.neusoft.neuiotms.dcom.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.jpa.model.AbstractAuditModel;
import com.neusoft.bizcore.web.jpa.model.Comment;

import lombok.Getter;
import lombok.Setter;

/**
 * @author WYS
 * @date 2020年8月18日 下午1:30:04
 */
@Getter
@Setter
@Entity
@Table(name = "neuiot_priority")
@org.hibernate.annotations.Table(appliesTo = "neuiot_priority", comment = "优先级表")
public class Priority extends AbstractAuditModel {

    private static final long serialVersionUID = -1146452512217956181L;

    @Length(max = 50, message = "影响范围不能超过{max}位")
    @Column(length = 50, nullable = false)
    @Comment("varchar(50) NOT NULL COMMENT '影响范围'")
    private String coverageInfluence;

    @Length(max = 50, message = "紧急程度不能超过{max}位")
    @Column(length = 50, nullable = false)
    @Comment("varchar(50) NOT NULL COMMENT '紧急程度'")
    private String urgency;

    @Length(max = 50, message = "优先级不能超过{max}位")
    @Column(length = 50, nullable = false)
    @Comment("varchar(50) NOT NULL COMMENT '优先级'")
    private String priority;

}
